package com.eshop.modules.user.param;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@JsonIgnoreProperties(ignoreUnknown = true)
public class AddressParam implements Serializable {
    @ApiModelProperty("收货地址详情")
    private AddressDetailParam address;
    @NotBlank
    @ApiModelProperty("收货详细地址")
    @Size(max = 60, message = "长度超过了限制", min = 1)
    private String detail;
    @ApiModelProperty("地址ID")
    private String id;
    @ApiModelProperty("是否默认收货地址 true是 false否")
    private String is_default;
    @NotBlank
    @ApiModelProperty("收货手机号码")
    private String phone;
    @ApiModelProperty("收货地址邮编")
    private String post_code;
    @NotBlank
    @ApiModelProperty("收货地址真实名字")
    @Size(max = 30, message = "长度超过了限制", min = 1)
    private String real_name;
    private String wx_export;

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof AddressParam;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AddressParam)) {
            return false;
        }
        AddressParam other = (AddressParam) o;
        if (!other.canEqual(this)) {
            return false;
        }
        String this$id = getId();
        String other$id = other.getId();
        if (this$id != null ? !this$id.equals(other$id) : other$id != null) {
            return false;
        }
        String this$real_name = getReal_name();
        String other$real_name = other.getReal_name();
        if (this$real_name != null ? !this$real_name.equals(other$real_name) : other$real_name != null) {
            return false;
        }
        String this$post_code = getPost_code();
        String other$post_code = other.getPost_code();
        if (this$post_code != null ? !this$post_code.equals(other$post_code) : other$post_code != null) {
            return false;
        }
        String this$is_default = getIs_default();
        String other$is_default = other.getIs_default();
        if (this$is_default != null ? !this$is_default.equals(other$is_default) : other$is_default != null) {
            return false;
        }
        String this$wx_export = getWx_export();
        String other$wx_export = other.getWx_export();
        if (this$wx_export != null ? !this$wx_export.equals(other$wx_export) : other$wx_export != null) {
            return false;
        }
        String this$detail = getDetail();
        String other$detail = other.getDetail();
        if (this$detail != null ? !this$detail.equals(other$detail) : other$detail != null) {
            return false;
        }
        String this$phone = getPhone();
        String other$phone = other.getPhone();
        if (this$phone != null ? !this$phone.equals(other$phone) : other$phone != null) {
            return false;
        }
        AddressDetailParam this$address = getAddress();
        AddressDetailParam other$address = other.getAddress();
        return this$address != null ? this$address.equals(other$address) : other$address == null;
    }

    public int hashCode() {
        int i = 43;
        String $id = getId();
        int hashCode = $id == null ? 43 : $id.hashCode();
        String $real_name = getReal_name();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = $real_name == null ? 43 : $real_name.hashCode();
        String $post_code = getPost_code();
        int i3 = (i2 + hashCode2) * 59;
        int hashCode3 = $post_code == null ? 43 : $post_code.hashCode();
        String $is_default = getIs_default();
        int i4 = (i3 + hashCode3) * 59;
        int hashCode4 = $is_default == null ? 43 : $is_default.hashCode();
        String $wx_export = getWx_export();
        int i5 = (i4 + hashCode4) * 59;
        int hashCode5 = $wx_export == null ? 43 : $wx_export.hashCode();
        String $detail = getDetail();
        int i6 = (i5 + hashCode5) * 59;
        int hashCode6 = $detail == null ? 43 : $detail.hashCode();
        String $phone = getPhone();
        int i7 = (i6 + hashCode6) * 59;
        int hashCode7 = $phone == null ? 43 : $phone.hashCode();
        AddressDetailParam $address = getAddress();
        int i8 = (i7 + hashCode7) * 59;
        if ($address != null) {
            i = $address.hashCode();
        }
        return i8 + i;
    }

    public void setAddress(AddressDetailParam address2) {
        this.address = address2;
    }

    public void setDetail(String detail2) {
        this.detail = detail2;
    }

    public void setId(String id2) {
        this.id = id2;
    }

    public void setIs_default(String is_default2) {
        this.is_default = is_default2;
    }

    public void setPhone(String phone2) {
        this.phone = phone2;
    }

    public void setPost_code(String post_code2) {
        this.post_code = post_code2;
    }

    public void setReal_name(String real_name2) {
        this.real_name = real_name2;
    }

    public void setWx_export(String wx_export2) {
        this.wx_export = wx_export2;
    }

    public String toString() {
        return "AddressParam(id=" + getId() + ", real_name=" + getReal_name() + ", post_code=" + getPost_code() + ", is_default=" + getIs_default() + ", wx_export=" + getWx_export() + ", detail=" + getDetail() + ", phone=" + getPhone() + ", address=" + getAddress() + ")";
    }

    public String getId() {
        return this.id;
    }

    public String getReal_name() {
        return this.real_name;
    }

    public String getPost_code() {
        return this.post_code;
    }

    public String getIs_default() {
        return this.is_default;
    }

    public String getWx_export() {
        return this.wx_export;
    }

    public String getDetail() {
        return this.detail;
    }

    public String getPhone() {
        return this.phone;
    }

    public AddressDetailParam getAddress() {
        return this.address;
    }
}
